﻿using System;
using System.Collections.Generic;
using System.Text;

namespace duia.Canteenpay.ViewModel
{
    /// <summary>
    /// 用户列表分页基类
    /// </summary>
    public abstract class BasePageResponse
    {
        /// <summary>
        /// 查询页数
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 查询行数
        /// </summary>
        public int PageSize { get; set; } = 50;

        /// <summary>
        /// 总行数
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 返回数据
        /// </summary>
        public object Data { get; set; }

    }

    /// <summary>
    /// 用户列表分页基类
    /// </summary>
    public class BasePageResponse<T> : BasePageResponse
    {
        /// <summary>
        /// 返回数据
        /// </summary>
        public new List<T> Data { get; set; }

    }
}
